package com.tyjc.prizeOptimize;

import java.io.Serializable;
import java.math.BigDecimal;

//一场比赛所选的内容
public class ItemSelect implements Serializable,Cloneable {

    private String matchno;
    private String week;

    private String homeTeam;
    private String awayTeam;

    //选取的选项
    private String item;

    private String key;
    //选项对应的sp数值
    private BigDecimal spvalue;

    private String handicap;

    @Override
    public ItemSelect clone() {
        try {
            return (ItemSelect) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }
    /**
     *  @param matchId  场次
     * @param week
     * @param homeTeam 主队
     * @param awayTeam 客队
     * @param code   投注值
     * @param key   键值
     * @param sp  倍率
     */
    public ItemSelect(String matchId, String week, String homeTeam, String awayTeam, String code, String key, BigDecimal sp,String handicap) {
        this.matchno = matchId;
        this.week = week;
        this.homeTeam = homeTeam;
        this.awayTeam = awayTeam;
        this.item = code;
        this.key = key;
        this.spvalue = sp;
        this.handicap = handicap;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public BigDecimal getSpvalue() {
        return spvalue;
    }

    public void setSpvalue(BigDecimal spvalue) {
        this.spvalue = spvalue;
    }

    public String getMatchno() {
        return matchno;
    }

    public void setMatchno(String matchno) {
        this.matchno = matchno;
    }


    public String getHomeTeam() {
        return homeTeam;
    }

    public void setHomeTeam(String homeTeam) {
        this.homeTeam = homeTeam;
    }

    public String getAwayTeam() {
        return awayTeam;
    }

    public void setAwayTeam(String awayTeam) {
        this.awayTeam = awayTeam;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getHandicap() {
        return handicap;
    }

    public void setHandicap(String handicap) {
        this.handicap = handicap;
    }
}
